Interplay of geometric and electronic structure in thin films of diindenoperylene on Ag(111)