Wavelet-based adaptive simulation of nonuniform interconnects with arbitrary loads