Design strategy to maximize recovery energy towards smart water grids: case study