Damage accumulation and hysteretic behavior of MAX phase materials