Edge functionalization of finite graphene nanoribbon superlattices