Shock Wave Rise Time and the Viscosity of Liquids and Solids