A Bayesian method for inferring quantitative information from FRET data