Microscopic Calculation of the Gas Gain in Cylindrical Proportional Counters