Predicting susceptibility of magnesium alloys to weld-edge cracking