what element has atoms that can form halide ions?