Enhanced mechanical behavior and corrosion resistance of AZ31 magnesium alloy through a novel solid-phase processing