Auroral X-rays, electron bombardment and trapped radiation