The thermochemistry of a reacting mixture of elastic materials with diffusion