Numerical simulation of thin-film electro-optic beam deflectors