Theory of recombination-enhanced defect reactions in semiconductors