On the refraction and dispersion of carbon dioxide, carbon monoxide, and methane