The new compass uses light to detect magnetic fields