Influence of surface pre-treatment on the deposition and corrosion properties of hydrophobic coatings on a magnesium alloy