Engineering III–V Nanowires for Optoelectronics: From Visible to Terahertz