A measurement of the giant-dipole-resonance contribution to the Coulomb excitation of 17O