Fabrication and assembly of one-dimensional semiconductor nanostructures and their application to multi-functional devices