Edge-functionalized and substitutionally doped graphene nanoribbons: Electronic and spin properties | Synapse