Electron-distribution function for the Boltzmann equation in semiconductors