Electron emission properties of two-phase argon and argon-nitrogen avalanche detectors