Thermodynamics of mixtures and phase field theory