Ṡtabilization of a gamma scintillation spectrometer against zero and gain drifts