Temperature dependence of the energy gap in semiconductors