System capacities, quality and allocation: Water quality