Pump as turbine implementation in a dynamic numerical model: cost analysis for energy recovery in water distribution network