General Shock-Wave Equation of State for Solids