Numerical modeling of failure in magnesium alloys during crush simulations