The rapid growth of generative artificial intelligence (AI), which can create text, images and video in seconds in response to prompts, has heightened fears that the new technology could be used to sway major elections this year, as more than half of the world's population is set to head to the polls.