STATISTICAL THERMODYNAMIC MODEL FOR COMPETITIVE ION EXCHANGE