Design of a new thin-film electro-optic switch