Short shaping of slowly rising pulses, with integrated pole cancellation