Formation of X-ray line emission spectra of excimer-laser-produced plasmas