A fast algorithm for solving 3-D eddy current problems with integral formulations