History says the S&P 500 could advance 8% through September 2025, and the growth-focused Nasdaq Composite could advance 19%.