Diurnal variations in the atmospheric electric field