Gasification temperature measurement with flame emission spectroscopy