Synthesis of mesoporous titanium dioxide by soft template based approach: characterization and application in dye-sensitized solar cells