Energy gaps in nitrogen delta-doping graphene: A first-principles study