Effect of stacking faults on the magnetocrystalline anisotropy of hcp Co: a first-principles study