MODELING CHEMICAL EQUILIBRIUM OF ELECTROLYTE SOLUTIONS