Galactic cosmic rays and the environment