Atomic-scale Sensing of the Electric and Magnetic Field with a Molecular Sensor