Ultrasensitive near-infrared photodetectors based on MoTe2 transistors with tunable photoresponse time