Effects of non-metal dopants and defects on electronic properties of barium titanate as photocatalyst