Thermodynamics of phase separation in aqueous solutions of polymers