How the stock market can predict the outcome of the presidential election