X-ray photoelectron spectroscopy study of some metal(II) halide and pseudohalide complexes