Equilibrium in Ternary Ion Exchange Systems