Bayesian error analysis of Rutherford backscattering spectra