Electronic components embedded in a single graphene nanoribbon