A super-cell approach for the study of localized defects in solids: carbon substitution in bulk silicon