Stress-induced traps in multilayered structures