A fiber optic sensor for water in organic solvents based on polymer swelling.