Nonlinear spectral shaping and optical rogue events in fiber-based systems