DFT study and XPS measurements elucidating the electronic and optical properties of KPb2Cl5