Excitation and quenching of sodium atoms behind a shock wave