Electronic structure and optical properties of RbPb2Br5