Spectroscopy and Optical Diagnostics for Gases