name the two political parties that replaced the federalists and the democratic-republicans by the mid-1830s.