Production of highly charged heavy ions by means of a hybrid source in DC mode and in afterglow mode