Tunable top-down fabrication and functional surface coating of single-crystal titanium dioxide nanostructures and nanoparticles