Effect of microstructure on fatigue behavior of AZ31 magnesium alloy