Modulation of N-bonding configurations and their influence on the electrical properties of nitrogen-doped graphene