High figure of merit in an ac driven graphene nanoribbon