An improved technique for determination of oil content in water-bearing medium