Bayesian Approach for X-Ray and Neutron Scattering Spectroscopy