Semiconductor Nanowires: Optical Properties and All-Optical Switching