Development of gamma-ray spectrometers optimized for runaway electron bremsstrahlung emission in fusion devices