Spatially resolved excitation of Rydberg atoms and surface effects on an atom chip | Synapse