Mastery of optical magnetic coupling at the nanometric scale for complete control of light-matter interactions