A Nyström method for Fredholm integral equations on the real line