Real time control of a prototype for pressure regulation and energy production in Water Distribution Networks