Rayleigh-scattering visualization of the development of second-mode waves