Study of non-equilibrium electron avalanches, application to proportional counters