How did immigration affect the ability of the North to conduct the war?