Simulations of terrestrial in-situ cosmogenic-nuclide production