Quadratic interaction functional for general systems of conservation laws