Solitons in dispersion-compensated optical fibers with loss