Optimal signal propagation in ResNets through residual scaling