On the heat of formation of solid alloys