Ladder variables, internal structure of Galton–Watson trees and finite branching random walks