A boundary element method for eddy-current problems in fusion devices