How did the industrialization of the United States affect the working conditions of factory workers?