Spectroscopy for Compton interaction in pixelated CdZnTe detectors