The influence of corrosion of TiO2 films on their surface properties