Coulomb excitation of the giant dipole resonance in hadron scattering