Energy stocks offer boost to S&P/TSX composite, U.S. stock markets mixed