Tensor correlations and single-particle states in medium-mass nuclei