Magnetism of N-doped graphene nanoribbons with zigzag edges from bottom-up fabrication