Lightning driven EMP in the upper atmosphere