Generalized trends in the formation energies of perovskite oxides.