Thermodynamic modelling of solution phases and phase diagram calculations