Model calculation of PDA–PA heterostructures: Influence of topological defects on localized states