Optical investigation on dye-doped sol-gel glasses