Stacking faults in B2-structured magnesium alloys from first principles calculations