Transformation elasticity and anelasticity