The solar origin of long‐term variations of the interplanetary magnetic field strength