Mastering NFT Loyalty Programs through Token Gating