Enhancement of optoelectronic properties of TiO2 films containing Pt nanoparticles