Nuclide production rates in stone meteorites and lunar samples by galactic cosmic radiation