Managing soil carbon and nitrogen for productivity and environmental quality