Nanowire-based field effect transistors for terahertz detection and imaging systems