The history of cosmic radiation as revealed by isotopic changes in the meteorites and on the earth