Analysis of hydrocarbon oil index in water