Confocal microscopy for characterization of porous sol–gel glasses incorporating luminescent dyes