Carbon isotopic abundance ratios in S-type stars