Residence time distribution in multi-stage systems with recycle