Characterization of the critical values of branching random walks on