Resonance structure and inelastic strain and defect localization in loaded media