Measure the refractive index of petroleum