Modulation of rectification and negative differential resistance in graphene nanoribbon by nitrogen doping