Extended Irreversible Thermodynamics of Chemically Reacting Systems