Development of a passive visible spectroscopic diagnostic on HL-2A tokamak