Optimizing the operation of the Valencia water-distribution network