An Automatic Differentiation Method for Surface Carbon Flux Inversion