Theory and simulation of electronic and optical properties of thin film barium strontium titanate