Observation of two-dimensional spin fluctuations in the bilayer ruthenate Sr3Ru2O7 by inelastic neutron scattering