Approximate solution to Fredholm integral equations using linear regression and applications to heat and mass transfer