The nonlinear optical loop mirror: soliton and noise-like pulse emission in a figure-eight fiber laser