Combined effect of thickness and stress on ferroelectric behavior of thin BaTiO3 films