Nitrogen doping effects on the structure of graphene