Hysteresis of ferrogels magnetostriction