Characterization of HgCdTe and HgCdSe materials for third generation infrared detectors