Near-infrared photodetection and time-resolved photocurrents in cadmium arsenide heterojunctions