An analytical approach to discharge circuits in gas lasers