Impact ejection, spallation, and the origin of meteorites