Strain‐dependence of localized states in quantum‐well structures