Removal of CW pedestal from optical signal using nonlinear element in ring laser