Optimisation in design of pumping systems comprising pumbs, pipelines and waterhammer control devices