Rare earth-activated materials and structures for photonic application: ultratransparent glass ceramics, planar waveguides, spherical microresonators and microcavities