Influence of titanium and oxygen vacancies on the transport and conducting properties of barium titanate