Nanoscale morphology and electronic properties at the metal/semiconductor interface in organic light-emitting diodes