Learning GFlowNets from partial episodes for improved convergence and stability