Extended irreversible thermodynamics and runaway electrons in plasmas