States confined in the barriers of type-III HgTe/CdTe superlattices