Comparative study of TiO2 particles in powder form and as a thin nanostructured film on quartz