Electrooptic properties of a ferroelectric polymer studied by attenuated total reflection