Graphene Nanoribbon-based Synapses with Versatile Plasticity