Here's how long the stock market historically takes to regain pre-recession levels