Density of states, enthalpy of formation and occurrence of the sigma phase in transitional alloys