Transport of charged particles in the heliosphere: Theory