Corrosion resistance properties of AZ31 magnesium alloy after Ti ion implantation