Optical and electro-optical properties of sol-gel derived ferroelectric thin films