Simple apparatus to calculate the refractive index of liquids based on Snell’s law