Heavy-ion elastic scattering and transfer reactions