Optogalvanic detection as a quantitative method in spectroscopy