First-Principles Calculations of Defect Structures in B2 AlCo and GaCo