Controlling of lattice strains for crack-free and strong ferroelectric barium titanate films by post-thermal treatment