Anomalous temperature dependence of the energy gap of AgGaS2