A new method for determination of gamma-ray spectrometer non-linearity