Nearest Definite Pair for the Generalized Eigenproblem applied to the Computation of the Characteristic Modes