Diode-type CdTe strip and linear array detectors for gamma-ray detection and imaging