Republican shift across counties in Philadelphia region helped Trump win Pennsylvania