Electronic and optical properties of K doped PTCDA monolayer on Ag(111)