Cosmogenic nuclides in extraterrestrial materials