Generative artificial intelligence for distributed learning to enhance smart grid communication