Hypercontractivity for the heat semigroup for ultraspherical polynomials and on the n-sphere