Light source for energy stabilization of calorimetric detectors based on photodetectors