These S&P 500 stocks are trading at a discount as the second half gets under way