Monitoring mixed neutron-proton field near the primary proton and deuteron beams in spallation targets