Republican David McCormick flips pivotal Pennsylvania Senate seat