Performance of CdZnTe coplanar-grid gamma-ray detectors