Influence of the electronic shell structure on the elastic scattering of heavy ions