How OpticStudio calculates refractive index at arbitrary temperatures and pressures