Carrier distribution function in semiconductors