Suitability of high-pressure xenon as scintillator for gamma ray spectroscopy