The role of solute in grain refinement of magnesium