Correlation between carbon incorporation and defect formation in quasi-single crystalline silicon