A thermomechanical theory for reacting immiscible mixtures