Coupling of curved transmission lines, and application to optical directional couplers