Neutronic studies on flux-trap moderators in spallation neutron sources