Harmonic Balance Finite Element Method: Applications in Nonlinear Electromagnetics and Power Systems