Propagation of solar particles and the interplanetary magnetic field