San Francisco one win away from reaching World Series for third time in five years