Optical transmission through ferroelectric thin films as a probe of surface terms