First‐Principles Calculations of Anion Vacancies in Oxides and Nitrides