Improved Calculation of the Electronic and Optical Properties of Tetragonal Barium Titanate