Dynamic response of the dielectric and electro-optic properties of epitaxial-ferroelectric thin films