A rigorous method of moments solution for curved waveguide bends and its applications