Self-modulation instability of ultra-relativistic particle bunches with finite rise times