Calculation of critical shear stress for binary magnesium alloys: A first-principles study