Robust full-waveform inversion based on automatic differentiation and differentiable dynamic time warping | Synapse