Effect of a barrier defect in the creation of localized states in the structure of multi-quantum wells