Dynamic stabilization of perovskites at elevated temperatures: A comparison between cubic BaFeO3 and vacancy-ordered monoclinic