Optimization criteria for coplanar-grid detectors