Finite-element analysis of the formability of a magnesium-based alloy AZ31 sheet