First-principles study of instantaneous and averaged local potential inBaTiO3