A multipurpose highly charged ion source