Circuit control of microplasma switching in avalanche diodes