Injecting modes in bent and angled waveguides