An iterative variant of the degenerate kernel method for solving Fredholm integral equations