The chemistry of imperfections in N-graphene.