The production of intense negative helium and hydrogen ion beams