Improving the Lifetime of a Mechanical System Subjected to a Repetitive Stress