How did the goals and practices of the american federation of labor resemble and differ from those of the knights of labor?