Prediction of eutectics and phase separation in the glass formation range using a thermodynamic method