Spin-flip transitions in 16O and 18O excited by inelastic proton scattering.