Temperature and density spectroscopic measurements in different laser-generated plasmas