Energetic particle precipitation and its effects on the upper atmosphere and climate