Effusion method for determining the electron affinity and heat of formation of negative ions