A plant-wide aqueous phase chemistry module describing pH variations and ion speciation/pairing in wastewater treatment process models.