Corrosion protection of AZ31 magnesium alloy by a TiO2 coating prepared by LPD method