Improving the mechanical properties of magnesium and a magnesium alloy through severe plastic deformation