A Fast Algorithm for Frequency-Domain Solutions of Electromagnetic Field Computation of Electric Devices Using Time-Domain Finite-Element Method