Importance of the upper state position in the performance of quantum well intersubband infrared detectors