Energy resolution of scintillation detectors