Use of high-granularity position sensing to correct response non-uniformities of CdZnTe detectors