Investigation of lead-free thin films based on barium titanate for electrocaloric devices