Adaptive window width selection algorithm for discrete gabor transform based on metric function and its time-frequency filtering