Design and analysis of electro optic sensor by finite element method