Defect compensation in the p-type transparent oxide Ba2BiTaO6