Tight-binding calculation of formation energies in multicomponent oxides: Application to the MgO-CaO phase diagram.