Variational autoencoders, optimal transport, and cooperative communication