Fully Atomistic Understanding of the Electronic and Optical Properties of a Prototypical Doped Charge-Transfer Interface