Novel method for accurate g measurements in electron‐spin resonance