Micro-potential model for stress–strain hysteresis of micro-cracked materials