The Civil War affected the northern economy by