Multi-directional controllable electro-optical switch based on grating coupler | Synapse