Rogue and Shock Waves in Nonlinear Dispersive Media (Lecture Notes in Physics)