Synthesis of symmetric and asymmetric planar optical waveguides