Extended Miedema model: Predicting the formation enthalpies of intermetallic phases with more than two elements