Inverse magnetostriction