Electron-electron bremsstrahlung emission and the inference of electron flux spectra in solar flares