Refractive-index gas thermometry