Speed and pressure controls of pumps-as-turbines installed in branch of water-distribution network subjected to highly variable flow rates