Bayesian analysis on the X-ray spectra of the binary neutron star merger GW170817