Generative embeddings of brain collective dynamics using variational autoencoders