Sol Gel-Derived Rare Earth-Activated Confined Structures For Photonics