Optimization of design of water supply systems using genetic algorithms