Electrostatic models in the theory of solutions