Shock-induced collapse of porosity, mapping pore size and geometry, collapse mechanism, and hotspot temperature