Planar LC optical switch for optical communications