Thermodynamics of formation of Y-Fe alloys