Application of Bayesian tomography method to the visible spectroscopic diagnostic on HL-2A tokamak