Bidirectional optical switch based on electrowetting