Development of gamma ray spectrometer with high energy and time resolutions on EAST tokamak