Multicomponent equilibria on ion-exchange resins