Optical properties of dye-doped sol-gel glasses