Fabrication and characterization of low-loss optical fibers containing rare-earth ions