Simulating bent waveguides using the EME solver