Error analysis of a spectrally accurate Volterra-transformation method for solving 1-D Fredholm integro-differential equations