Functional genomics in legumes: reversing the grain drain