Coplanar-grid CdZnTe detector with three-dimensional position sensitivity