Electrocaloric effect in ferroelectric polymers