Simulations of electron avalanches in an ultra-low-background proportional counter