Ab initio electronic structure and transport studies of N$_2^{AA}$-doped armchair and zigzag graphene nanoribbons