Determining water content by using Karl Fischer reagent