A Bayesian tool for inferring the chemical and physical properties of the interstellar medium using RADEX