Requirements of thermodynamics in the analysis of elastic-plastic shock waves