Nanowire-based architectures for the detection of THz radiation