Time domain registration of P- and C-waves based on a dynamic time warping algorithm