Spectral filtering of solitons by means of a nonlinear amplifying loop mirror.