Finite element solution of electron waveguide discontinuities and its application to quantum field effect directional couplers