Uniqueness of classical and nonclassical solutions for nonlinear hyperbolic systems