Energy production by means of pumps as turbines in water distribution networks