Evolution of temperature profiles in TiNi films for elastocaloric cooling