Polymeric nanocomposites for electrocaloric refrigeration