The quasi-invariant in the theory of interface cracks