Electroresistance of Pt/BaTiO3/LaNiO3 ferroelectric tunnel junctions and its dependence on BaTiO3 thickness