Sol-gel synthesis of Pb-free thin-film nanomaterials for electrocaloric devices