Applications of Semiconductor Nanowires for Nanoelectronics and Nanoelectromechanical Systems.