FINITE ELEMENTS FOR MAGNETOSTATIC FIELDS WITH DISTRIBUTED CURRENT DENSITIES