Hydraulic and electric regulation of a prototype for real-time control of pressure and hydropower generation in a water distribution network