Effects of nitrogen on the carbon anode of a lithium secondary battery