Specific features of the electronic structure and optical properties of KPb2Br5: DFT calculations and X-ray spectroscopy measurements