Atomic effects in heavy-ion elastic scattering