Detection and Localization of Leaks in Water Networks