Self-heating of relaxor and ferroelectric ceramics during electrocaloric field cycling