Synthesis and electrochemical applications of nitrogen-doped carbon nanomaterials