Prior to 1850, what was a main reason the North developed an economy increasingly based on manufacturing while the South continued to rely on agriculture?