Time-resolved spectral characteristics of external-cavity quantum cascade lasers and their application to stand-off detection of explosives