Heat and Work in Chemical Reactions