A General Tool for Circuit Analysis Based on Wavelet Transform