Chemistry of water supply, treatment, and distribution