A look at the best and worst S&P 500 stocks this year shows how tech investors have piled into semiconductor plays and bailed on software.