Scattering correction algorithm for neutron radiography and tomography tested at facilities with different beam characteristics