Synthesis and characterization of metal oxide nanoparticles and nanostructured films for dye-sensitized solar cell applications