Development of a new compact gamma-ray spectrometer optimised for runaway electron measurements