Rare-earth-activated glass-ceramic waveguides