The energy-water nexus : energetic analysis of water and wastewater treatment, distribution and collection