Large rectifying ratio in a nitrogen-doped armchair graphene device modulated by the gate voltage