The effect of the tensor force on single-particle states and on the isotope shift