Cosmic ray induced nuclear spallation