Characterizing the local vectorial electric field near an atom chip using Rydberg-state spectroscopy