Bayesian inference to characterize Josephson oscillations in a double-well trap