Characterization of high-resistivity CdTe crystals for γ-ray detectors