Production of negative ions by laser ablation of Ta and Cu