New synthesis procedure of dye containing polymer based and silica based materials for optical gas sensors