Composite material based on a polymer and a porous glass for fabricating laser components