Characterization of CdTe, CdxZn1−xTe and GaAs detectors