Influence of cooling rate on microsegregation behavior of magnesium alloys