Influence of sol-gel matrices on the optical excitation of europium ions