Determination of the size and refractive index of weakly absorbing particles