Photoefficiency and Optical, Microstructural, and Structural Properties of TiO2 Thin Films Used as Photoanodes