Silica-based sol-gel films optically functionalized through doping with organic molecules