Thermodynamics of associated solutions. Phase equilibria of binary and ternary water—alcohol mixtures