Preparation of photocatalytic nanostructured TiO2 thin films