Alternating electromagnetic field computation in laminated cores