The role of legumes in sustainable farming systems: past, present and future