Sol-gel-based, planar waveguide sensor for gaseous iodine.