Inelastic neutron scattering study of the magnetic fluctuations in Sr2RuO4