Precipitation of energetic electrons into the atmosphere