A Gröbner basis criterion for birational equivalence of affine varieties Coordinate rings for the moduli stack of \(\mathrm{SL}(\mathbb C)\) quasi-parabolic principal bundles on a curve and toric fiber products 