Hard x-ray response of pixellated CdZnTe detectors