Long‐term variations in the magnetic fields of the Sun and the heliosphere: Their origin, effects, and implications