A thermodynamically self-consistent damage equation for grain size evolution during dynamic recrystallization