Dynamic critical behavior of the Swendsen-Wang algorithm for the three-dimensional Ising model