Lightning: Estimates of the rates of energy dissipation and nitrogen fixation