The role of the density of interface states in interfacial energy level alignment of PTCDA