Control of nitrogen and carbon metabolism in root nodules