Optical emission spectroscopy