Mechanics of large strain extrusion machining and application to deformation processing of magnesium alloys