How did the number of factories in the North affect the start of the Civil War?