Structural and electronic properties of BaTiO 3 slabs: Mechanism for surface conduction