Energy resolution of gamma-ray spectroscopy of JET plasmas with a LaBr3 scintillator detector and digital data acquisition