Thompson sampling for improved exploration in GFlowNets