The energetics of transition metal alloy formation: Theory versus experiment