Extension operators for smooth functions on compact subsets of the reals