Learning DTW-Preserving Embeddings for Scalable and Accurate Time Series Applications