Numerical simulation of multicomponent ion exchange operations