Electro-optic switch in ferroelectric thin films mediated by surface plasmons