Real Time Control of a prototype for pressure regulation and energy production in Water Distribution Networks