Bayesian selection of threshold autoregressive models