Real time ultrafast spectroscopy of shock front pore collapse