Graphene nanoribbons on gold: Understanding superlubricity and edge effects