The economy of the North was dependent on manufacturing and which two other economic activities during the 19th century?