Scanning Josephson spectroscopy on the atomic scale