The interplanetary magnetic field from 1 to 5 AU: Ulysses observations