Monte Carlo simulation of in-situ-produced cosmogenic nuclides.