How did the industrial revolution contribute to the growth of cities in the 1800s?