Wavelet solution of Fredholm integral equations