Study of the giant resonance in O16 by inelastic electron scattering