Stability and Structures of Constitutional Defects in Nonstoichiometric Intermetallic Compounds by First-Principles Calculations