Reliability-based optimization of water distribution networks