Elastic and inelastic nuclear scattering of heavy ions