Design of planar waveguide directional couplers with arbitrary modal electric field