Electron Power-Law Spectra in Solar and Space Plasmas