Text this: Systematic modulation of charge and spin in graphene nanoribbons on MgO