The party of Pakistan's jailed former prime minister, Imran Khan, used artificial intelligence to post an online post-election speech by Khan.