Mesoporous films prepared from synthesized TiO2 nanoparticles and their application in dye-sensitized solar cells (DSSCs)