Classical and nonclassical discontinuities and their structures in nonlinear elastic media with dispersion and dissipation