Coulomb and nuclear contribution to the excitation of7Li incident on heavy nuclei