Numerical solution of fractional Fredholm integro-differential equations by spectral method with fractional basis functions