Topologically-based Variational Autoencoder for Time Series Classification