Characterization of CdTe/CdZnTe detectors