Performance of the prototype LaBr3 spectrometer developed for the JET gamma-ray camera upgrade