Three‐dimensional finite element solutions of electron waveguide discontinuities