Water demand and quality impacts on water-use sustainability