Photosynthetic carbon and nitrogen metabolism and the relationship