Development and validation of a novel modeling framework integrating ion exchange and resin regeneration for water treatment.