Rare earth ion aggregates in sol gel silica and their influence on optical properties