Synthesis of nanostructured TiO2 thin films for photocatalytic applications