Transport of negative hydrogen and deuterium ions in RF-driven ion sources