Facile Fabrication and Integration of Patterned Nanostructured TiO2 for Microsystems Applications