Temperature Dependence of Electron Energy Levels in Solids