Rare-earth-doped glasses and glass-ceramics for integrated optics