Optimization of drinking water distribution systems in relation to the effects of climate change