The evolution of the localized interface optical-phonon modes in a finite superlattice with a structural defect