Microstructure and mechanical properties of nanostructured and microstructured TiO2 films