The S&P 500 looks expensive relative to its own history