Direct Conversion of the Energy of Laser and Fusion Plasma Clouds to Electrical Energy During Expansion in a Magnetic Field