Effect of the Thickness of TiO2 Films on the Structure and Corrosion Behavior of Mg-Based Alloys