Ray–Knight representation of flows of branching processes with competition by pruning of Lévy trees