Energy recovery in water distribution networks. Implementation of pumps as turbine in a dynamic water distribution system numerical model