Solar cosmic rays in the system of solar–terrestrial relations