Beyond Reality: The Pivotal Role of Generative AI in the Metaverse