Performance of cerium-doped Gd3Al2Ga3O12 (GAGG:Ce) scintillator in gamma-ray spectrometry