Directional diffusion in magnesium alloys