Inversion of bremsstrahlung spectra emitted by solar plasma