Optimisation of pumping and storage design through iterative hydraulic adjustment for minimum energy consumption