Design of photonic directional couplers as phase selectors