Tech stocks help lift S&P/TSX composite, U.S. stock markets down