A new method for measuring γ-ray energy at the internal calibration of a radioactive source