Comparison of Cadmium-Zinc-Telluride semiconductor and Yttrium-Aluminum-Perovskite scintillator as photon detectors for epithermal neutron spectroscopy