Magnetically tuned topological phase in graphene nanoribbon heterojunctions | Synapse