Optimal Design of District Metering Areas