Templated sol-gel deposition and titanium dioxide nanoframe dye-sensitized solar cells