Use of legumes in livestock systems