Trends in stability of perovskite oxides.