An electrocaloric refrigerator with direct solid to solid regeneration