Estimating leakages in water distribution networks based only on inlet flow data