On measurement of complex refractive index of liquids by diffractive element-based sensor