Finite-element method for calculating power frequency 3-dimensional electromagnetic field distributions