The production of Ganymede's magnetic field