Where Trump’s loss fits in the history of US presidential elections