Which negative outcome of industrialization led to the formation of labor unions in the late 19th century?