Finite Element Analysis in Electromagnetic Systems Accounting for Electric Circuits