Size-dependent changes in the electronic structure of metal clusters as investigated by scanning tunneling spectroscopy