A low-noise preamplifier for gamma-ray sensors with add-on device for large-signal management