Temperature dependence of the average energy per electron-hole pair in Silicon and Germanium