Competing failure modes and complex S–N curves in fatigue of structural materials