Preparation and integration of nanostructured titanium dioxide