Boundary condition for the efficient excitation and absorption of hybrid waveguide modes in finite element formulations