Application of Higham-Cheng algorithm to the generalized eigenproblem in computational electromagnetics