Determination of hydrocarbon residues in water