Application of photoelasticity to quality inspection of scintillating crystals