What drew americans and immigrants to move into the nation's cities in the late nineteenth and early twentieth centuries?