Hot-electron energy distribution in strong magnetic fields