Single-crystalline CdTe nanowire field effect transistors as nanowire-based photodetector.