A New Model For the Simulation of Ion-exchange Equilibria