Interaction of halide ions with copper: the DFT approach