A detailed study of non-uniform quantum well infrared photodetectors