Influence of Cooling Rate on Microsegregation Behavior of Magnesium Alloys