Carbon-Nitrogen modeling (adapted from CN model in CLM4.0)