A Finite Element Method For Waveguide Modes Using Transverse Electric And Magnetic Fields