South African rand extends gains ahead of inflation data