Irreversible (rational) thermodynamics of mixtures of a solid substance with chemically reacting fluids