Iterative substructuring for finite-element electrical machine simulation