Lightning and upper atmospheric phenomena