Energy deposition by auroral electrons in the atmosphere