Residence time distributions in systems with internal reflux