A Chebyshev series method for the numerical solution of Fredholm integral equations