Effects of the band offset on interfacial deep levels