Conservation laws for 2 × 2 hyperbolic systems