Optical investigation of infrared dyes in hybrid thin films