Comparison of contingency tables under quasi-symmetry