Assessment of water losses in distribution networks