Farmer perceptions of legumes and their functions in smallholder farming systems in east Africa