First principle calculations of the electronic properties of nitrogen-doped carbon nanoribbons with zigzag edges