Modeling damage accumulation to fracture in a magnesium-rare earth alloy