Text this: An investigation of the electronic structure and optical properties of Pd-doped SnO2 based on first principles