Gyromagnetic ratio of Einstein-Maxwell fields