Mechanism of Defect Reactions in Semiconductors