An advanced preamplifier for highly segmented germanium detectors