Simulation studies of CZT detectors as gamma-ray calorimeter