Spectral response of an injection-mode infrared detector