Temporal variations of the interplanetary magnetic field at the Earth’s orbit and of the solar activity