Template-assisted synthesis of porous TiO2 photoanode for efficient dye-sensitized solar cells