the first fully developed American factory system emerged in the what industry?