HgCdTe barrier infrared detectors