A method for predicting ion exchange equilibria in ternary ion exchange systems