Electric conduction in semiconductors and metals