Learning Weighted Submanifolds with Variational Autoencoders and Riemannian Variational Autoencoders