Spectroscopic measurements in different plasmas produced by pulsed laser ablation