Numerical Modeling of Failure in Magnesium Alloys under Axial Compression and Bending for Crashworthiness Applications