Experimental and theoretical model of refractive index artifacts in absorbance detection