An analysis method of gamma-ray pulse-height distributions obtained with a Ge(Li) detector