Trainable Time Warping: Aligning Time-Series in the Continuous-Time Domain