Optimal design of district metering areas for the reduction of leakages