Synthesis and characterization of mesoporous TiO2 nanostructured films prepared by a modified sol–gel method for application in dye solar cells