Lasing and fluorescence properties of dye-doped xerogel