Reversible chemical reactions in the unified field theory of thermodynamics