Electron distribution and harmonic generation during plasma heating by high-power radiation