Error Analyses for Nyström Methods for Solving Fredholm Integral and Integro-Differential Equations