Magnetic field conditions upstream of Ganymede