How did industrialization affect living conditions during the late eighteenth and early nineteenth centuries?