Electro-optic effect and photoelastic effect of feroelectric relaxors