A shell-model calculation of the even-mass tin isotopes including core excitation