Galton–watson processes in varying environment and accessibility percolation