Optimum design calculations for detectors based on ZnSe(Те,О) scintillators