Structural and Chemical Factors Governing Anion Reactivity in Perovskite Oxides