Trajectory Balance: Improved Credit Assignment in GFlowNets