How did the weakening of the Roman Empire affect its western territories?