Directional couplers with linear and nonlinear elements