What was the relationship between the collapse of the of the second party system and the republica victory in the election of 1860?