Electronic and Ionic Trapping at Domain Walls in BaTiO3