Single-electron spin resonance in a nanoelectronic device using a global field