Experimental and theoretical investigations of absorbance spectra for edge-plasma monitoring in fusion reactors