Finite element simulation of eddy current problems using magnetic scalar potentials