Control of Water Quality in Municipal Distribution Systems