Thermally and electrically induced antiferroelectric ↔ ferroelectric transition in perovskite ceramics for use in high energy density capacitors