Controllable synthesis and capacitive performance of nitrogen-doped porous carbon from carboxymethyl chitosan by template carbonization method