A constitutive model for magnetostriction based on thermodynamic framework