Organically modified sol-gel films incorporating an infrared dye