Degenerate two-wave mixing in the collinear geometry