A fuzzy-logic-based threshold function for signal recovery using discrete wavelet transform