Influence of oxygen and carbon on the generation and annihilation of radiation defects in silicon