Energy and utility stocks boost S&P/TSX composite, U.S. stock markets mixed