Spectral probing of impact-generated vapor in laboratory experiments