On numerical solution of Fredholm and Hammerstein integral equations via Nyström method and Gaussian quadrature rules for splines