Gamma-ray measurements in the one-neutron knockout of C-17, N-19, O-21 and F-25