Giants beat Tigers to sweep, win World Series