Viscosity of shock-compressed fluids