Closed-Form Diffeomorphic Transformations for Time Series Alignment