Electron energy deposition in the middle atmosphere