Reactive template assisted growth of one-dimensional nanostructures of titanium dioxide