Comparing precorrected-FFT and fast multipole algorithms for solving three-dimensional potential integral equations