What was the primary reason that the north developed an economy increasingly based on manufacturing while the south continued to rely more on an agricultural based economy