Avalanche photodiode for measurement of low-energy electrons