Branching reactions and chemical lasers