Ultrafast microscopy of shock waves using a shock target array with an optical nanogauge