Thermodynamic restrictions on constitutive equations for second-deformation-gradient inelastic behavior