Determination of the electron capture time in quantum-well infrared photodetectors using time-resolved photocurrent measurements