SM-DTW: Stability Modulated Dynamic Time Warping for signature verification