Giant resonance polarization terms in the nucleus-nucleus potential