Bayesian analysis of contingency tables as the ratio of two binomially distributed random variables