A method to calibrate P controllers for the real time control of pressures in water distribution networks