Detwinning of AZ31 magnesium alloy during in situ tension