Optimal water distribution network design accounting for valve shutdowns