Ambipolar transport in Ni-catalyzed InGaAs nanowire field-effect transistors for near-infrared photodetection