Modeling of waveguide components by the BI-RME method with the Ewald Green's function and the segmentation technique