Energy stocks help boost S&P/TSX composite index, U.S. stocks mixed