Dispersive shock waves: from water waves to nonlinear optics