The influence of the detachment of electrons on the properties and the nature of interactions in X−H2O (X=Cl, Br) complexes