Mean residence times in continuous flow systems