Simulations of the cosmic-ray-induced neutron background