Text this: Magnetic field based finite element method for magneto-static problems with discontinuous electric potential distributions