Active transport of magnesium across the yeast cell membrane.