A model for the hysteretic behavior of shape memory alloys under repeated loading cycles