Recent progress in CdTe and CdZnTe detectors