Optimal design of urban drainage networks