YAP scintillators for resonant detection of epithermal neutrons at pulsed neutron sources