Bayesian model selection and averaging via mixture model estimation