Dielectric tunability and electro-optic effect of Ba0.5Sr0.5TiO3 thin films