Directional coupler-based optical switch using a liquid crystal