Existence of $S^2$-almost periodic solutions to a class of nonautonomous stochastic evolution equations