Text this: On the numerical solution of highly oscillatory Fredholm integral equations using a generalized quadrature method