On-chip electron spin resonance for quantum device applications